package td.pt.widget;

import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.PopupViewImpl;

public class NewTopicPopupView extends PopupViewImpl implements
		NewTopicPopupPresenter.MyView {

	public interface Binder extends UiBinder<Widget, NewTopicPopupView> {
	}

	private final Widget widget;

	@UiField
	Label initialCategory;
	@UiField
	TextBox name;
	@UiField
	TextArea description;
	@UiField
	Button createTopic;
	@UiField
	Button cancel;

	@Inject
	public NewTopicPopupView(final EventBus eventBus, final Binder binder) {
		super(eventBus);
		widget = binder.createAndBindUi(this);
	}

	@Override
	public Widget asWidget() {
		return widget;
	}

	public Label getInitialCategory() {
		return initialCategory;
	}

	public TextBox getName() {
		return name;
	}

	public TextArea getDescription() {
		return description;
	}

	public Button getCreateTopic() {
		return createTopic;
	}

	public Button getCancel() {
		return cancel;
	}

}
